package org.dromara.bclt.domain.bo;

import org.dromara.bclt.domain.CourseStatus;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 视频播放状态业务对象 bclt_course_status
 *
 * @author RRyuan
 * @date 2024-10-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CourseStatus.class, reverseConvertGenerate = false)
public class CourseStatusBo extends BaseEntity {

    /**
     * 课程观看记录id
     */
    @NotNull(message = "课程观看记录id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 设备id
     */
    @NotNull(message = "设备id不能为空", groups = {EditGroup.class })
    private Long deviceId;

    /**
     * 设备编号
     */
    private String deviceNumber;

    /**
     * 课程id
     */
    @NotNull(message = "课程id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long courseId;

    /**
     * 播放完成状态
     */
    private String courseStatus;

    /**
     * 首次完成时间
     */
    private Date finishTime;

    /**
     * 当前播放进度
     */
    private Integer playProgress;

    /**
     * 课程观看时长
     */
    private Integer courseViewingDuration;

    /**
     * 备注
     */
    private String remark;


}
